# -*- coding: utf-8 -*-
from __future__ import print_function, division
#系统库
#第三方库
#自定义库


#主体
class Player(object):
    PS_NORMAL = 0
    PS_READY = 1
    PS_GAMING = 2
    PS_LOST = 3

    def __init__(self, u_id, name):
        self.u_id = u_id
        self.username = name
        self.current_room = None
        self.comet = None
        self.state = Player.PS_NORMAL
        return None

    def __str__(self):
        return '{0}-{1}'.format(self.u_id, self.username)




#type
Character = 1
Location = 2
Attachment = 3
Plot = 4
Agenda = 5
House = 6
Event = 7
#house
Baratheon = 1
Greyjoy = 2
Lannister = 3
Martell = 4
Stark = 5
Targaryen = 6
Neutral = 7
#unique
Unique = 1
Nonunique = 2
Infinity = 3
#property
Ally = 1
#keyword
Ambush = 1  # 伏击
Stalwart = 2  # 坚强
Intimidate = 3  # 蔑视
Infamy = 4  # 背信
Vigilant = 5  # 警戒
Vengeful = 6  # 报复
#icon
Military = 1
Intrigue = 2
Power = 3


class Card(object):
    def __init__(self):
        self.name = '无面者贾坤'                                                            # 名称
        self.unique = Unique                                                                # 独有
        self.house = [Baratheon, Greyjoy, Lannister, Martell, Stark, Targaryen]             # 家族
        self.type = Character                                                               # 类型
        self.property = [Ally]                                                              # 属性
        self.keyword = [Ambush, Stalwart, Intimidate, Infamy, Vigilant, Vengeful]           # 关键字
        #self.crest = [learned]                                                              # 饰语
        self.icon = [Military, Intrigue, Power]                                             # 符号
        self.str = 3                                                                        # 力量值
        self.cost = 5                                                                       # 价格
        self.text = 'Jaqen H\'ghar gets +1 STR for each power on him.'                      # 文字描述
        self.influence = 0                                                                  # 提供影响力
        self.income = 0                                                                     # 收入
        self.initiative = 0                                                                 # 优先度
        self.claim = 0                                                                      # 效能
